package com.xd.core.openapi.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class OutDetailVo {
    @ApiModelProperty(value = "放款id")
    private Integer outId;

    @ApiModelProperty(value = "贷款期限")
    private Integer term;

    @ApiModelProperty(value = "还款日")
    private String repayDay;

    @ApiModelProperty(value = "还款方式(0--等额本金,1--等额本息,2--等本等息,3--一次性付清,4--先息后本)")
    private String loanMethod;

    @ApiModelProperty(value = "还款频率(0--天,1--月,2--周)")
    private String repayFrequency;

    @ApiModelProperty(value = "年化率%")
    private BigDecimal rate;

    @ApiModelProperty(value = "放款状态(0--待放款,1--放款中,2--放款完成 ,3--放款失败，4--退款)")
    private String outStatus;

    @ApiModelProperty(value = "借款开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date outStartTime;

    @ApiModelProperty(value = "借款结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date outEndTime;

    @ApiModelProperty(value = "本次放款金额")
    private BigDecimal loanAmount;

    @ApiModelProperty(value = "支付成功时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date payTime;

}
